

const Instance = {



    // Gets the object selected by nameturns 

    GetPickInstance(a) {

        const ins = rt.objects[a];
        for (const insins of ins.getPickedInstances()) {
            return insins;
        }

        
    },

    //Flip over
    Flip(instance, state) {

        if (instance == null) return


        let width = Math.abs(instance.width)

        if (state) {
            instance.width = -width;

        }
        if (!state) {
            instance.width = width;

        }



    }



}

export default Instance;